<!DOCTYPE html>
<html>
{include file="public/head" /}
<body>
<div class="box-body">
        <form id="myform" class="myform form-horizontal"  method="post">
        <input type="hidden" name="id" value="{$info['id']|default=''}">
          <div class="row">
            <div class="col-md-12">
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">配置名称：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="title" value="{$info['title']|default=''}" autocomplete="off"  required="required" placeholder="请输入配置名称">
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">配置标识：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="name" value="{$info.name|default=''}"  autocomplete="off"  required="required" placeholder="请输入配置标识">
              </div>              
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">配置排序：</span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control" name="sort" value="{$info.sort|default=''}" autocomplete="false" placeholder="越小越前面" style="text-align:center; width:auto">
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">配置类型：</span>
                </div>
                <!-- /btn-group -->
                <select name="type" class="form-control select2" style="width:100%">
		{volist name="type_list" id="type"}
          <option value="{$key}" {eq name="key" value="$info['type']"}selected{/eq}>
          {$type}
          </option>
		{/volist}
                </select>
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">配置分组：</span>
                </div>
                <!-- /btn-group -->
                <select name="class" class="form-control select2" style="width:100%">
          {volist name="class_list" id="group"}		
          <option value="{$key}" {eq name="key" value="$info['class']"}selected{/eq}>
          {$group}
          </option>
          {/volist}	
                </select>
              </div>                             
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn" style="margin-top:-56px;">配&nbsp;&nbsp;置&nbsp;&nbsp;值：</span>
                </div>
                <!-- /btn-group -->
               <textarea name="value" class="form-control" style="height: 90px">{$info.value|default=''}</textarea>
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn" style="margin-top:-56px;">配&nbsp;&nbsp;置&nbsp;&nbsp;项：</span>
                </div>
                <!-- /btn-group -->
               <textarea name="extra" class="form-control" style="height: 90px">{$info.extra|default=''}</textarea>
              </div> 
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn" style="margin-top:-56px;">配置说明：</span>
                </div>
                <!-- /btn-group -->
               <textarea name="remark" class="form-control" style="height: 90px">{$info.remark|default=''}</textarea>
                </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">CSS样式：</span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control" name="style" value="{$info.style|default=''}" autocomplete="false" placeholder="配置项输入框样式">
              </div>                
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">配置状态：</span>
                </div>
                <!-- /btn-group -->
                <select name="status" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
          <option value="1">显示</option>
          <option value="0" {eq name="info.status" value="0" }selected{/eq}>隐藏</option>
                </select>
              </div>   
              
                                                                     
            </div>          
          </div>
          <!-- /.row -->
        <div class="box-footer {notempty name=":request()->param('dialog')"}hidden{/notempty} layer-footer">
          <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">确定</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
               {notempty name=":request()->param('dialog')"}
               <button type="reset" class="btn btn-primary btn-embossed btn-close" onClick="layer.closeAll();"> 关闭</button>
               {/notempty}
            </div>
       </div>
       <!-- /.box-footer -->     
</form>
</div>
<!-- /.box-body -->    
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.config();
});	
</script>
</body>
</html>
